package com.heima.search.service;

import com.heima.model.search.dtos.AssociateSearchDto;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.vos.SearchArticleVo;
import com.heima.search.pojos.ApAssociateWords;
import com.heima.search.pojos.ApUserSearch;

import java.util.List;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-11-19 10:26
 */
public interface SearchService {
    List<SearchArticleVo> search(UserSearchDto dto);

    void syncArticleToEs(SearchArticleVo searchArticleVo);

    void saveSearchHistory(String searchWords,Integer userId);

    List<ApUserSearch> loadUserSearch();

    void delUserSearch(String id);

    List<ApAssociateWords> loadAssociate(AssociateSearchDto dto);

}
